#ifndef GAME_H
#define GAME_H

#include "Singleton.h"

#include <QDebug>
#include <QList>
#include <QMap>
#include <exception>
#include <QTimer>
#include <QObject>
#include <iostream>

class MyView {
  public:
    virtual void Display()  // 模板方法
    {
        qInfo() << "SetFocus";
        DoDisplay();
        qInfo() << "ResetFocus";
    }
    virtual void DoDisplay() = 0;   // 原语操作
    virtual ~MyView(){}
    MyView(){}
};

class ConcreteMyView: public MyView {
public:
    virtual void DoDisplay() {
        qInfo() << "ConcreteMyView" << __FUNCTION__;
    }
    virtual ~ConcreteMyView(){}

};

#endif // GAME_H
